package com.zpark.resume.common;

import lombok.Getter;

/**
 * @PackageName: com.zpark.resume.common
 * @ClassName: StatusCode
 * @Description: 响应状态码
 * @author: RZS
 * @date: 2023/5/30  16:26
 */
@Getter
public enum StatusCode {
    SUCCESS(200, "操作成功"),
    FAILURE(400, "操作失败"),
    UNKONWN(500, "服务器未知错误"),
    SAVE_FAILURE(501, "保存失败"),
    UPDATE_FAILURE(502, "修改失败"),
    DELETE_FAILURE(503, "删除失败");

    private Integer code;
    private String message;

    StatusCode(Integer code, String msg){
        this.code = code;
        this.message = msg;
    }
}
